/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_dmap_languagesDetachedCriteria extends
	AbstractORMDetachedCriteria {
    public final IntegerExpression id;
    public final StringExpression name;
    public final IntegerExpression deviceAbstractionId;
    public final IntegerExpression deviceId;
    public final IntegerExpression firmwareId;
    public final StringExpression file;

    public T_dmap_languagesDetachedCriteria() {
	super(org.testis.orm.classes.T_dmap_languages.class,
		org.testis.orm.classes.T_dmap_languagesCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
	deviceAbstractionId = new IntegerExpression("deviceAbstractionId",
		this.getDetachedCriteria());
	deviceId = new IntegerExpression("deviceId", this.getDetachedCriteria());
	firmwareId = new IntegerExpression("firmwareId",
		this.getDetachedCriteria());
	file = new StringExpression("file", this.getDetachedCriteria());
    }

    public T_dmap_languagesDetachedCriteria(DetachedCriteria aDetachedCriteria) {
	super(aDetachedCriteria,
		org.testis.orm.classes.T_dmap_languagesCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
	deviceAbstractionId = new IntegerExpression("deviceAbstractionId",
		this.getDetachedCriteria());
	deviceId = new IntegerExpression("deviceId", this.getDetachedCriteria());
	firmwareId = new IntegerExpression("firmwareId",
		this.getDetachedCriteria());
	file = new StringExpression("file", this.getDetachedCriteria());
    }

    public T_dmap_languages uniqueT_dmap_languages(PersistentSession session) {
	return (T_dmap_languages) super.createExecutableCriteria(session)
		.uniqueResult();
    }

    public T_dmap_languages[] listT_dmap_languages(PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_dmap_languages[]) list.toArray(new T_dmap_languages[list
		.size()]);
    }
}
